package deyi.entity;/*
 * Welcome to use the TableGo Tools.
 * 
 * http://vipbooks.iteye.com
 * http://blog.csdn.net/vipbooks
 * http://www.cnblogs.com/vipbooks
 * 
 * Author:bianj
 * Email:edinsker@163.com
 * Version:5.0.0
 */

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "device")
public class DeviceEntity {

    @Id
    @Column(name = "sn", unique = true, nullable = false, length = 20)
    private String sn;

    @Column(name = "pn", nullable = true, length = 50)
    private String pn;

    @Column(name = "imei", nullable = true, length = 50)
    private String imei;

    @Column(name = "imsi", nullable = true, length = 50)
    private String imsi;

    @Column(name = "ccid", nullable = true, length = 255)
    private String ccid;

    @Column(name = "sim", nullable = true, length = 50)
    private String sim;

    @Column(name = "devicename", nullable = true, length = 50)
    private String devicename;

    @Column(name = "devicetypeid", nullable = true, length = 10)
    private Integer devicetypeid;

    @Column(name = "deviceinfo", nullable = true, length = 50)
    private String deviceinfo;

    @Column(name = "devicestatus", nullable = false, length = 10)
    private Integer devicestatus;

    @Column(name = "createdate", nullable = true)
    private Date createdate;


    public String getSn() {
        return this.sn;
    }


    public void setSn(String sn) {
        this.sn = sn;
    }


    public String getPn() {
        return this.pn;
    }


    public void setPn(String pn) {
        this.pn = pn;
    }


    public String getImei() {
        return this.imei;
    }


    public void setImei(String imei) {
        this.imei = imei;
    }


    public String getImsi() {
        return this.imsi;
    }


    public void setImsi(String imsi) {
        this.imsi = imsi;
    }


    public String getCcid() {
        return this.ccid;
    }


    public void setCcid(String ccid) {
        this.ccid = ccid;
    }


    public String getSim() {
        return this.sim;
    }


    public void setSim(String sim) {
        this.sim = sim;
    }


    public String getDevicename() {
        return this.devicename;
    }


    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }


    public Integer getDevicetypeid() {
        return this.devicetypeid;
    }


    public void setDevicetypeid(Integer devicetypeid) {
        this.devicetypeid = devicetypeid;
    }


    public String getDeviceinfo() {
        return this.deviceinfo;
    }


    public void setDeviceinfo(String deviceinfo) {
        this.deviceinfo = deviceinfo;
    }


    public Integer getDevicestatus() {
        return this.devicestatus;
    }


    public void setDevicestatus(Integer devicestatus) {
        this.devicestatus = devicestatus;
    }

    /**
     * 获取设备创建日期
     * 
     * @return 设备创建日期
     */
    public Date getCreatedate() {
        return this.createdate;
    }

    /**
     * 设置设备创建日期
     * 
     * @param createdate
     *          设备创建日期
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
}